import axios from 'axios'


const request = axios.create({
  baseURL:'http://152.136.185.210:7878/api/m5',
  timeout:5000
})

request.interceptors.request.use(config=>{
  return config
},err=>{
  console.log(err)
})

request.interceptors.response.use(response=>{
  return response.data
},err=>{
  return Promise.reject(err)
})

export default request